package info.emm.weiyipro.demo.sdk;

public class WyNotification<T> {
    private static final String TAG = WyNotification.class.getSimpleName();

    private String opt;//操作: "send" 发送
    private String id;//默认""
    private String fromID;//消息来自哪儿: "server"-服务端，userId-某个用户id
    private String toID;//信令发送给谁: 可选"others"-除自己之外的其他人，"server"-服务端，"all"-所有人包含自己，userId-某个用户id
    private String name;//信令名称
    private T body;//消息体

    /**
     * {"opt":"send","id":"","fromID":"server","toID":"8SAKytiUSn3FBO5LABGa","name":"participantsProperties","body":[{"id":"8SAKytiUSn3FBO5LABGa","userId":"SCM-W09","properties":{}}]}
     */
    public WyNotification() {

    }

    @Override
    public String toString() {
        return "WyNotification{" +
                "opt='" + opt + '\'' +
                ", toID='" + toID + '\'' +
                ", name='" + name + '\'' +
                ", fromID='" + fromID + '\'' +
                ", id='" + id + '\'' +
                ", body=" + body +
                '}';
    }

    public String getOpt() {
        return opt;
    }

    public void setOpt(String opt) {
        this.opt = opt;
    }

    public String getToID() {
        return toID;
    }

    public void setToID(String toID) {
        this.toID = toID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFromID() {
        return fromID;
    }

    public void setFromID(String fromID) {
        this.fromID = fromID;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }
}
